New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[icloud] Fix NPE in AccountBridgeHandler #7087
Conversation
Signed-off-by: Kristof Rado <rado.krisi@gmail.com>
Travis tests were successfulHey @radokristof, |
Makes sense. But it also means that the methos signature Line 32 in 4ad6329
This might result in some more errors where the (wrong) non-null assumption is used. Please have an eye on this. |
Travis tests were successfulHey @radokristof, |
@J-N-K yes you are right. Previously when I worked on the binding, I assumed that JsonSyntaxException is thrown every time when the JSON is incorrect or null.
However the json is checked against |
Seems to be this issue: google/gson#540. See also https://stackoverflow.com/questions/42396634/prevent-gson-from-returning-null-when-deserializing-empty-strings. IMO the documentation for |
So the null-check could be omitted and the method
|
Signed-off-by: Kristof Rado <rado.krisi@gmail.com>
@J-N-K Thanks! Already pushed a commit that contains that fix. Thanks for your help! |
Travis tests were successfulHey @radokristof, |
* Fix NPE in AccountBridgeHandler Signed-off-by: Kristof Rado <rado.krisi@gmail.com> Signed-off-by: leluna <hengrui.jiang@googlemail.com>
* Fix NPE in AccountBridgeHandler Signed-off-by: Kristof Rado <rado.krisi@gmail.com> Signed-off-by: Hans-Reiner Hoffmann <hans-reiner.hoffmann@gmx.de>
* Fix NPE in AccountBridgeHandler Signed-off-by: Kristof Rado <rado.krisi@gmail.com>
* Fix NPE in AccountBridgeHandler Signed-off-by: Kristof Rado <rado.krisi@gmail.com>
* Fix NPE in AccountBridgeHandler Signed-off-by: Kristof Rado <rado.krisi@gmail.com>
* Fix NPE in AccountBridgeHandler Signed-off-by: Kristof Rado <rado.krisi@gmail.com>
* Fix NPE in AccountBridgeHandler Signed-off-by: Kristof Rado <rado.krisi@gmail.com>
* Fix NPE in AccountBridgeHandler Signed-off-by: Kristof Rado <rado.krisi@gmail.com>
* Fix NPE in AccountBridgeHandler Signed-off-by: Kristof Rado <rado.krisi@gmail.com>
* Fix NPE in AccountBridgeHandler Signed-off-by: Kristof Rado <rado.krisi@gmail.com> Signed-off-by: Daan Meijer <daan@studioseptember.nl>
* Fix NPE in AccountBridgeHandler Signed-off-by: Kristof Rado <rado.krisi@gmail.com>
Hope this makes sense.
I got this NPE few days ago:
So I think only
iCloudData
can benull
here.This and every non-catch Exceptions interrupts the refreshData thread, meaning that the binding won't refresh the data automatically.
Or should we somehow restart the threads again when something causes it to interrupt?